﻿Public Class GameByTag
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Request.Params("TagName") = "" Then
            GridView1.DataSourceID = "SqlDataSource3"
        Else
            GridView1.DataSourceID = "SqlDataSource2"
        End If
    End Sub

    Protected Function getDate(ByVal dateTime As String) As String
        If (dateTime = "") Then
            Return "Not Published"
        Else
            Dim parts As String() = dateTime.Split(" ")
            Return parts(0)
        End If
    End Function
End Class